package cz.jm.web.jmlib.client.dialog.validation.validators;

import cz.jm.web.jmlib.client.dialog.validation.HasValidationValue;

/** Validator kontroluje ci zadana hodnot dodrzuje standardny format 
 * emailovej adresy. */
public class MailValidator extends RegexpValidator {
	
	public static final String MAIL_PATTERN = "\\w+@\\w+\\.\\w{2,3}";
	public MailValidator(HasValidationValue valueHolder) {
	    super(MAIL_PATTERN, valueHolder, constants.invalidMail());
    }

}
